<!--
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- 선택시 ddp-selected 추가 -->
<div [ngClass]="{'ddp-selectbox-disabled': disabled}">
  <div class="ddp-type-selectbox" [ngClass]="{'ddp-selected' : isShowSelectList && isShowSelectListForOutSide}" (click)="toggleSelectList()" >
    <span class="ddp-txt-selectbox">{{viewText}}</span>
    <ul [ngClass]="{'ddp-selectdown': isUpSelect == false, 'ddp-pass' : isOptionToLeft, 'ddp-pass2' : !isOptionToLeft }"
        class="ddp-list-selectbox" >
      <li *ngFor="let item of array">
        <a href="javascript:" (click)="$event.stopPropagation();">
          <label class="ddp-label-checkbox">
            <input type="checkbox" (change)="selected(item, $event)">
            <i class="ddp-icon-checkbox ddp-dark"></i>
            <span class="ddp-txt-checkbox">{{isStringArray ? item : item[viewKey]}}</span>
          </label>
        </a>
      </li>
    </ul>
  </div>
</div>
<!-- //Drop down -->
